Xbasic

OBJECT.CHILDREN Function

Syntax

Object_Count as N = .Children()

Description

Returns the number of objects contained by the object.

Discussion

The <OBJECT>.CHILDREN() method applies to:

Alpha Anywhere (for <OBJECT> use the keyword "A5")
Control Panel (for <OBJECT> use the keyword "CONTROLPANEL")
Browses (for <OBJECT> use either the <BROWSE> pointer or the name of the browse)
Forms (for <OBJECT> use either the <FORM> pointer or the name of the form)
Form Controls (for <OBJECT> use the <CONTROL> pointer or the address of the control)

The <OBJECT>.CHILDREN() method returns the number of objects contained by the object.

Example

The script returns the number of objects contained by a form called Sales :

count = :sales.children()

Limitations

Desktop applications only.

See Also